package znet

import "zinx/ziface"

type Request struct {
	conn ziface.IConnection //已经和客户端建立好的链接
	//客户端请求的数据
	// data []byte
	msg ziface.IMessage //客户端请求的数据
}

// GetData implements ziface.IRequest.
func (r *Request) GetData() []byte {
	panic("unimplemented")
}

// 得到当前链接
func (r *Request) GetConnection() ziface.IConnection {
	return r.conn
}

// 获取请求的消息ID
func (r *Request) GetMsgId() uint32 {
	return r.msg.GetMsgId()
}
